<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="mb10">
		<a class="btn" href="<yjd:url url="/db/biDatabaseInfo/add"/>"><span class="add"></span>添加</a>
	</div>
	<!-- 列表 -->
	<c:set var="hashData" value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
	<div class="table_list">
		<table width="100%">
			<thead>
				<tr>
					<td width="20">ID</td>
					<td>标题</td>
					<td>编码</td>
					<td>jdbc_driver</td>
					<td>jdbc_url</td>
					<td>jdbc_username</td>
					<td>jdbc_password</td>
					<td>库业务类型</td>
					<td>当前可业务变更日志存放库</td>
					<td>是否需要向bi库抽取数据</td>
					<td width="200">备注 </td>
					<td>操作 </td>
				</tr>
			</thead>
			<c:if test="${hashData }">
			<tbody>
			<c:forEach items="${pager.pagerModel.dataList }" var="item">
				<tr>
					<td>${item.id }</td>
					<td>${item.title }</td>
					<td>${item.code }</td>
					<td>${item.jdbc_driver }</td>
					<td>${item.jdbc_url }</td>
					<td>${item.jdbc_username }</td>
					<td>${item.jdbc_password }</td>
					<td>${item.bs_type==1?"业务库":item.bs_type==2?"BI库":"业务库数据变革记录库" }</td>
					<td>${biDatabaseInfoMap[item.data_change_log_database_info_id]==null?"-":biDatabaseInfoMap[item.data_change_log_database_info_id].title }</td>
					<td>${item.is_elt_to_bi==0?"否":"是" }</td>
					<td>${item.description }</td>
					<td>
						<a href="<yjd:url url="/db/biDatabaseInfo/edit/${item.id }"/>" class="btn mr10">编辑</a>
						<a href="<yjd:url url="/db/biDatabaseInfo/delete/${item.id }"/>" class="btn J_ajax_del" data-msg="您确定删除该数据?" id="J_ajax_del_${item.id }">删除</a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
			</c:if>
		</table>
	</div>
	<!-- 分页 -->
	<%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>
<script>
	YJD.use('AppAdminCommon');
</script>